<?php

/**
 * 文件注释
 *
 * Author: Liam
 * Datetime: 11/26/17 00:00 PM
 */

namespace ApiBundle\Controller;

use BaseBundle\Controller\BaseController;

class BannerController extends BaseController
{
    // banner列表
    public function bannerListAction()
    {
        $conn = $this->getDoctrine()->getConnection();

        $data['bannerList'] = $conn->fetchAll("SELECT * FROM banner");
        return $this->jsonResponse('操作成功', 0, $data);
    }

    // 新增banner，编辑banner
    public function operaBannerAction()
    {
        $conn = $this->getDoctrine()->getConnection();
    }
}